
import java.util.Scanner;

public class 打折 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("你是会员吗     y/n");
        String judge = sc.next();
        System.out.println("请输入价格");
        double price = sc.nextDouble();

        if (judge.equals("y")) {
            if (price > 100) {
                System.out.println("打八折" + "付款金额为: " + (0.8 * price));
            }else if(price < 100) {
                System.out.println("打九折" + "付款金额为: " + (0.9 * price));
            }
        }else if(judge.equals("n")){
            if (price > 100) {
                System.out.println("打九折" + "付款金额为: " + (0.9 * price));
            }else if (price < 100){
                System.out.println("不打折" + "付款金额为: " + price);
            }
        }
    }
}